package com.heaboy.emaidemo1.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class MailConfig {
    @Value("${email.username}")
    private String userName;
    @Value("${email.password}")
    private String passWord;
    @Value("${email.host}")
    private String mailHost;
    @Value("${email.imap-host}")
    private String mailImapHost;
    @Value("${email.imap-port}")
    private String mailImapPort;
    @Value("${email.smtp-port}")
    private String mailSmtpPort;



    // 固定配置
    private final String mailSmtpAuth = "true";
    private final String fromDisplayName = "尹红涛";

    // 默认邮件主题和内容
    private String notificationMailTitle = "测试邮件主题";
    private String notificationMailContent = "牛马你有一个新的通知！";

    public String getMailSmtpPort() {
        return mailSmtpPort;
    }

    public void setMailSmtpPort(String mailSmtpPort) {
        this.mailSmtpPort = mailSmtpPort;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getMailHost() {
        return mailHost;
    }

    public void setMailHost(String mailHost) {
        this.mailHost = mailHost;
    }

    public String getMailImapHost() {
        return mailImapHost;
    }

    public void setMailImapHost(String mailImapHost) {
        this.mailImapHost = mailImapHost;
    }

    public String getMailImapPort() {
        return mailImapPort;
    }

    public void setMailImapPort(String mailImapPort) {
        this.mailImapPort = mailImapPort;
    }

    public String getMailSmtpAuth() {
        return mailSmtpAuth;
    }

    public String getFromDisplayName() {
        return fromDisplayName;
    }

    public String getNotificationMailTitle() {
        return notificationMailTitle;
    }

    public void setNotificationMailTitle(String notificationMailTitle) {
        this.notificationMailTitle = notificationMailTitle;
    }

    public String getNotificationMailContent() {
        return notificationMailContent;
    }

    public void setNotificationMailContent(String notificationMailContent) {
        this.notificationMailContent = notificationMailContent;
    }
}
